package com.itheima.a04objectdemo1;

public class ObjectDemo1 {
    public static void main(String[] args) {
        //返回对象的字符串表达形式
        Object obj = new Object();
        System.out.println(obj.toString());



        Person p=new Person("zhan",23);
        System.out.println(p.toString());


        Student stu = new Student("zhangsan",23);
        System.out.println(stu.toString());


//        Object obj2=new Student("zhangsan",23);
//        System.out.println(obj2.toString());

//        System.out.println(stu.equals(obj2));;

//        obj.equals(stu);
    }
}
